package com.library.books.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.library.common.annotation.Excel;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;
import java.util.Date;

/**
 * 书籍副本对象 books_copy
 *
 * @author hb
 * @date 2024-10-14
 */
@ApiModel("自增表")
@Builder
@Data
@Accessors(chain = true)
@NoArgsConstructor
@AllArgsConstructor
@TableName("`increment`")
public class Increment implements Serializable {
    private static final long serialVersionUID = 1L;

    /** id */
    @TableId(type = IdType.AUTO)
    private Long id;

    /**
     *  key
     *   - 查询的时候不会返回。因为值是CnType:A123,CnType:对于单纯查询是多余的
     */
    @TableField("`key`")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String key;

    /**
     * val
     *  - 查询的结果是种次号/索书号的值 A123
     */
    @TableField("`val`")
    private String val;

    /** use */
    @JsonIgnore
    @TableField("`use`")
    private String use;

    /** 使用场景 */
    @JsonIgnore
    @TableField("`scene`")
    private String scene;

    /** 自增 ，当前值就是下次获取值 */
    @TableField("`increment`")
    private Long increment;

}
